<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格</title>
    <link rel="stylesheet" href="../../../dest/css/fui.css">
</head>
<body>
<div class="demo" style="margin: 15px;"></div>




<script src="../../../dest/js/fui.js"></script>
<script>
    fui.use('JsTable',function(){
        JsTable('.demo').render({
            height:315,
            fixed:'left',
            checkbox:true,
            cols:[//表头
                {field:'id',title:'ID',width:80},
                {field:'name',title:'用户名',width:120},
                {field:'sex',width:80,fun:function(key){return key==1?'男':'女'}}
            ]
        });
    });
</script>
</body>
</html>
